package com.kafka.consumer;

import org.springframework.kafka.annotation.KafkaHandler;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * @date: 2022/4/15
 * @description:
 */
//@Component
//@KafkaListener(topics = {"MYTOPIC"},concurrency = "3",groupId = "groupId002",id = "myId002")
public class KafkaListener02 {

    @KafkaHandler
    public void onMessage(String message) throws InterruptedException {

        System.out.println("----------->"+message);


        //Thread.sleep(10000);

    }


}
